package com.computercourse.framework.exception;

import com.computercourse.framework.model.response.ResultCode;

/**
 * @author Feng.Yuan
 * @description 自定义异常类型
 * @date 2020/1/28 10:24 下午
 * @return
 */
public class CustomException extends RuntimeException {

    //错误代码
    ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }


}
